﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Reflection;
using System.IO;
using System.Media;

namespace JustAMinute
{
    struct SystemData
    {
        private static string executingAssemblyLocation;
        private static SoundPlayer cardSound;
        private static SoundPlayer cardPairSound;

        public static string ExecutingAssemblyLocation
        {
            get
            {
                return executingAssemblyLocation;
            }
        }
        public static SoundPlayer CardSound
        {
            get
            {
                return cardSound;
            }
        }
        public static SoundPlayer CardPairSound
        {
            get
            {
                return cardPairSound;
            }
        }
        
        static SystemData()
        {
            executingAssemblyLocation = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            cardSound = new SoundPlayer(Path.Combine(SystemData.executingAssemblyLocation, "DataStore/Sounds/cardSlide.wav"));
            cardPairSound = new SoundPlayer(Path.Combine(SystemData.executingAssemblyLocation, "DataStore/Sounds/pairOfCard.wav"));
        }
    }
}
